package com.itheima.sh.user.feign.fallback;

import com.itheima.sh.pojo.Order;
import com.itheima.sh.user.feign.IndentApi;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class IndentFeignFallback implements IndentApi {
    @Override
    public List<Order> findOrderByUserId(String username) {
        List<Order> orderList=new ArrayList<>();

        Order order = new Order();
        order.setId("-1");
        order.setUsername("服务器维护中");
        orderList.add(order);
        return orderList;
    }
}
